//
//  NavBarView.m
//  FMS
//
//  Created by Steven on 10/11/13.
//  Copyright (c) 2013 QGSVN. All rights reserved.
//

#import "NavBarView.h"
#import <QuartzCore/QuartzCore.h>

@implementation NavBarView

@synthesize rightButton = _rightButton;
@synthesize leftButton = _leftButton;
@synthesize titleLabel = _titleLabel;
@synthesize imgLogo = _imgLogo;
@synthesize imgNavigation = _imgNavigation;
@synthesize navBarViewDelegate;

- (void) awakeFromNib {
    [_leftButton.titleLabel setFont:[UIFont fontWithName:FMS_BOLD_FONT size:14]];
    [_rightButton.titleLabel setFont:[UIFont fontWithName:FMS_BOLD_FONT size:14]];
    _titleLabel.font = [UIFont fontWithName:FMS_REGULAR_FONT size:17];
    [_rightButton setTitleColor:FONT_COLOR forState:UIControlStateNormal];
    [_leftButton setTitleColor:FONT_COLOR forState:UIControlStateNormal];
    
    
}

- (IBAction)bntLeftClicked:(id)sender
{
    if ([self.navBarViewDelegate respondsToSelector:@selector(didClickedLeftButton)]) {
        [self.navBarViewDelegate didClickedLeftButton];
    }
}
- (IBAction)bntRightClicked:(id)sender
{
    if ([self.navBarViewDelegate respondsToSelector:@selector(didClickedRightButton)]) {
        [self.navBarViewDelegate didClickedRightButton];
    }
}

@end
